﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    var topMenusInfo = ViewBag.Menus as List<Authority.Model.SysMenuEntity>;
}
@section Head
{

}
<div class="layui-layout layui-layout-admin">
    <!-- 顶部 -->
    <div class="layui-header header">
        <div class="layui-main mag0">
            <a href="#" class="logo">工程管理系统</a>
            <!-- 显示/隐藏菜单 -->
            <a href="javascript:;" class="seraph hideMenu icon-caidan"></a>
            <!-- 顶级菜单 -->
            <ul class="layui-nav mobileTopLevelMenus" mobile>
                <li class="layui-nav-item">
                    <dl class="layui-nav-child">
                        @foreach (var item in topMenusInfo)
                        {
                            <dd class="layui-this" data-menu="@item.gCode"><a href="javascript:;"><i class="iconfont @item.sIconFont"></i><cite>@item.sName</cite></a></dd>
                        }
                    </dl>
                </li>
            </ul>

            <ul class="layui-nav topLevelMenus" pc>
                @foreach (var item in topMenusInfo)
                {
                    <li class="layui-nav-item" data-menu="@item.gCode">
                        <a href="javascript:;"><i class="layui-icon iconfont @item.sIconFont"></i><cite>@item.sName</cite></a>
                    </li>
                }
            </ul>
            <!-- 顶部右侧菜单 -->
            <ul class="layui-nav top_menu">
                @*<li class="layui-nav-item" pc>
                    <a href="javascript:;" class="clearCache"><i class="layui-icon icon-dustbin"></i><cite>清除缓存</cite><span class="layui-badge-dot"></span></a>
                </li>*@
                @*<li class="layui-nav-item lockcms" pc>
                    <a href="javascript:;"><i class="seraph icon-lock"></i><cite>锁屏</cite></a>
                </li>*@
                <li class="layui-nav-item" id="userInfo">
                    <a href="javascript:;"><img src="@(string.IsNullOrEmpty(ViewBag.PicUrl) ? "~/Images/face.jpg" : ViewBag.PicUrl)" class="user-img userAvatar" width="35" height="35"><cite class="adminName">@(string.IsNullOrEmpty(ViewBag.LoginUserName) ? ViewBag.LoginUserAccount : ViewBag.LoginUserName)</cite></a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" data-url="/Admin/Home/UserInfo"><i class="seraph icon-ziliao"></i><cite>个人资料</cite></a></dd>
                        <dd><a href="javascript:;" data-url="/Admin/Home/ChangePwd"><i class="seraph icon-xiugai"></i><cite>修改密码</cite></a></dd>
                        @*<dd pc><a href="javascript:;" class="functionSetting"><i class="layui-icon">&#xe620;</i><cite>功能设定</cite><span class="layui-badge-dot"></span></a></dd>*@
                        <dd pc><a href="javascript:;" class="changeSkin"><i class="layui-icon">&#xe61b;</i><cite>更换皮肤</cite></a></dd>
                        <dd><a href="/Admin/Login/Index" class="signOut"><i class="seraph icon-tuichu"></i><cite>退出</cite></a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <!-- 左侧导航 -->
    <div class="layui-side layui-bg-black">
        <div class="user-photo">
            <div style="float:left; width:50%; ">
                <a class="img" title="我的头像"><img src="@(string.IsNullOrEmpty(ViewBag.PicUrl) ? "~/Images/face.jpg" : ViewBag.PicUrl)" class="userAvatar"></a>
            </div>
            <div style="float:left; width:50%;">
                <div class="sign-in-content">
                    <a href="#"><i  class="iconfont sign-in"></i>在线</a>
                </div>
                <div class="log-out-content">
                    <a href="/Admin/Login/Index"><i class="iconfont log-out"></i>注销</a>
                </div>
            </div>
            <p>你好！<span>@(string.IsNullOrEmpty(ViewBag.LoginUserName) ? ViewBag.LoginUserAccount : ViewBag.LoginUserName)</span>，欢迎登录</p>
        </div>
        <div class="navBar layui-side-scroll" id="navBar">
            <ul class="layui-nav layui-nav-tree">
                <li class="layui-nav-item layui-this">
                    <a href="javascript:;" data-url="/Admin/Home/HomeMain"><i  class="iconfont icon-liuliangyunpingtaitubiao02" data-icon=""></i><cite>后台首页</cite></a>
                </li>
            </ul>
        </div>
    </div>
    <!-- 右侧内容 -->
    <div class="layui-body layui-form">
        <div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
            <ul class="layui-tab-title top_tab" id="top_tabs">
                <li class="layui-this" lay-id=""><i class="iconfont icon-liuliangyunpingtaitubiao02"></i> <cite>后台首页</cite></li>
            </ul>
            <ul class="layui-nav closeBox">
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="layui-icon caozuo">&#xe643;</i> 页面操作</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;" class="refresh refreshThis"><i class="layui-icon">&#x1002;</i> 刷新当前</a></dd>
                        <dd><a href="javascript:;" class="closePageOther"><i class="seraph icon-prohibit"></i> 关闭其他</a></dd>
                        <dd><a href="javascript:;" class="closePageAll"><i class="seraph icon-guanbi"></i> 关闭全部</a></dd>
                    </dl>
                </li>
            </ul>
            <div class="layui-tab-content clildFrame">
                <div class="layui-tab-item layui-show">
                    <iframe src="/Admin/Home/HomeMain"></iframe>
                </div>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <div class="layui-footer footer">
        <p><span>copyright 2019 Harvey</span></p>
    </div>
</div>
<!-- 移动导航 -->
<div class="site-tree-mobile"><i class="layui-icon icon-greaterThan"></i></div>
<div class="site-mobile-shade"></div>
@section Foot
 {
    <script src="~/Lib/tools/jQuery.md5.js"></script>
    <script src="~/Areas/Admin/js/home.cache.js"></script>
    <script src="~/Areas/Admin/js/home.index.js"></script>
}
